package com.mall.live.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LiveFollowerMapper {

    /**
     * 关注主播
     * @param id
     * @param uid
     * @param image
     */
    void attention(@Param("id") Long id, @Param("uid") Long uid, @Param("image") String image);

    /**
     * 点赞
     * @param id
     */
    void like(@Param("id") Long id, @Param("num") Integer num);

    /**
     * 获得点赞数
     * @param id
     * @return
     */
    Integer likeNum(Long id);
}
